package com.gitee.feizns.itrip.personal.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.gitee.feizns.itrip.personal.beans.pojo.HotelOrder;

/**
 * <p>
 * 订单表 Mapper 接口
 * </p>
 *
 * @author feizns
 * @since 2018-12-26
 */
public interface HotelOrderMapper extends BaseMapper<HotelOrder> {

    /**
     * 支付宝支付
     */
    int PAY_TYPE_ALI_PAY = 1;

    /**
     * 微信支付
     */
    int PAY_TYPE_WE_CHAT_PAY = 2;

    /**
     * 线下付款
     */
    int PAY_TYPE_OFFLINE_PAY = 3;

    /**
     * 订单状态：待付款
     */
    int ORDER_PENDING_PAYMENT_STATUS = 0;

    /**
     * 订单状态：已取消
     */
    int ORDER_IS_CANCEL_STATUS = 1;

    /**
     * 订单状态：付款成功
     */
    int ORDER_PAYMENT_SUCCESSFUL_STATUS = 2;

    /**
     * 订单状态：已消费
     */
    int ORDER_ALREADY_CONSUMED_STATUS = 3;

    /**
     * 订单状态：已点评
     */
    int ORDER_REVIEWED_STATUS = 4;

}
